#ifndef cardcon_H
#define cardcon_H


#include "widget.h"

#include <QWidget>
#include <QPaintEvent>
#include <Qpainter>
#include <QMouseEvent>
#include <QRandomGenerator>

class cardcon:public Widget
{
    Q_OBJECT
public:
    explicit cardcon(QWidget *parent = nullptr);
    ~cardcon();
protected:
    void paintEvent(QPaintEvent *event) ;
    void mousePressEvent(QMouseEvent *event) ;
signals:
    void sendSelf(cardcon *w);
};

#endif // cardcon_H
